﻿using SportsPlatform.BaseModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Model.SportBusiness
{
    /// <summary>
    /// 资讯信息实体
    /// </summary>
    [Table("T_B_Information")]
    public class Information : BaseModel
    {

        /// <summary>
        /// 所属商户Id
        /// </summary>
        public Guid? CompanyId { get; set; }

        /// <summary>
        /// 文章标题
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string ArticleTitle { get; set; }

        /// <summary>
        /// 资讯封面
        /// </summary>
        [Required]
        [MaxLength(200)]
        public string Cover { get; set; }

        /// <summary>
        /// 分享摘要
        /// </summary>
        [Required]
        [MaxLength(100)]
        public string ShareSummary { get; set; }

        /// <summary>
        /// 文章内容
        /// </summary>
        [Required]
        [Column(TypeName = "text")]
        public string ArticleContent { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 是否启用  1:启用  0:禁用
        /// </summary>
        public bool IsEnable { get; set; }

        /// <summary>
        /// 阅读量
        /// </summary>
        public int ReadingCount { get; set; }
    }
}
